<template>
	<view class="wrap">
		<view class="goodsInfo">
			<view class="goodsInfo-header">
				<image src="" mode=""></image>
				<view class="app_arrow">呵呵哒旗舰店</view>
			</view>
			<view class="goodsInfo-list">
				<view class="goodsInfo-itemWrap">
					<view class="goodsInfo-item">
						<view class="goodsInfo-item_img">
							<image src="../../static/images/img-goods.jpg"></image>
						</view>
						<view class="goodsInfo-item_title">人造棉布料绵绸纯色棉布黑色白服装衣服面料布头清仓处理绵绸布料</view>
					</view>
					<view class="goodsInfo-attr">
						<view class="goodsInfo-attr_header">大货</view>
						<view class="goodsInfo-attr_main">
							<g-item :customstyle="attrItemStyle" v-for="(item, index) in 2" :key="index">
								<template v-slot:left>
									<view class="goodsInfo-attr_L">
										<image src="" mode=""></image>
										<view>色号：1#黄色</view>
									</view>
								</template>
								<template v-slot:right>
									<view class="goodsInfo-attr_R">
										<text>￥30.9</text>
										<text>x24.0/米</text>
									</view>
								</template>
							</g-item>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="info">
			<view class="info-item">
				<view class="info-item_left">取货码</view>
				<view class="info-item_right">012586667998</view>
			</view>
			<view class="info-item">
				<view class="info-item_left">提货点</view>
				<view class="info-item_right">富羽莱广州店</view>
			</view>
			<view class="info-item">
				<view class="info-item_left">提货地址</view>
				<view class="info-item_right">广东省广州市天河区XXXXX路XXXXX号</view>
			</view>
			<view class="info-item">
				<view class="info-item_left">提货人</view>
				<view class="info-item_right">蜡笔小明</view>
			</view>
			<view class="info-item">
				<view class="info-item_left">预留电话</view>
				<view class="info-item_right">13888888888</view>
			</view>
		</view>
		<view class="info">
			<view class="info-item">
				<view class="info-item_left">订单编号</view>
				<view class="info-item_right">dd172481267812921</view>
			</view>
			<view class="info-item">
				<view class="info-item_left">下单时间</view>
				<view class="info-item_right">2020-12-13 17:23:56</view>
			</view>
			<view class="info-item">
				<view class="info-item_left">支付时间</view>
				<view class="info-item_right">2020-12-13 17:23:56</view>
			</view>
			<view class="info-item">
				<view class="info-item_left">支付方式</view>
				<view class="info-item_right">微信支付</view>
			</view>
			<view class="info-item">
				<view class="info-item_left">订单状态</view>
				<view class="info-item_right">待取货</view>
			</view>
			<view class="info-item">
				<view class="info-item_left">备注信息</view>
				<view class="info-item_right">--</view>
			</view>
		</view>
		<view class="total">
			<view class="total-main">
				<view class="total-item">
					<view class="total-item_left">商品金额</view>
					<view class="total-item_right">￥899.00</view>
				</view>
				<view class="total-item">
					<view class="total-item_left">运费</view>
					<view class="total-item_right">￥899.00</view>
				</view>
				<view class="total-item">
					<view class="total-item_left">优惠券</view>
					<view class="total-item_right">-￥899.00</view>
				</view>
			</view>
			<view class="total-footer">
				<view>实付款：</view>
				<view>￥809.00</view>
			</view>
		</view>
		<view class="btn">
			<g-btn title="确认核销"></g-btn>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				attrItemStyle: {
					width: '670rpx',
					height: '80rpx',
                    padding: '20rpx',
					border: '0',
					backgroundColor: '#f7f7f7'
				}
			}
		},
		onLoad(options) {

		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.wrap {
		// padding: 0 20rpx;
		padding-bottom: calc(constant(safe-area-inset-bottom) + 150rpx);
		padding-bottom: calc(env(safe-area-inset-bottom) + 150rpx);
	}

	.goodsInfo {
		width: 710rpx;
		margin: 20rpx auto 0;
		padding: 30rpx 20rpx 40rpx;
		box-sizing: border-box;
		border-radius: 10rpx;
		overflow: hidden;
		background-color: #fff;
	}

	.goodsInfo-header {
		display: flex;
		align-items: center;
        padding: 0 0 30rpx;
		image {
			width: 40rpx;
			height: 40rpx;
			margin-right: 20rpx;
            border-radius: 4rpx;
            background-color: red;
		}
	}

	.goodsInfo-list {}

	.goodsInfo-itemWrap {}

	.goodsInfo-item {
        display: flex;
    }

	.goodsInfo-item_img {
        image {
            width: 120rpx;
            height: 120rpx;
            border-radius: 10rpx;
            background-color: skyblue;
        }
    }

	.goodsInfo-item_title {
        flex: 1;
        margin-left: 20rpx;
        font-size: 26rpx;
        line-height: 1.6;
    }

	.goodsInfo-attr {}

	.goodsInfo-attr_header {
		padding: 28rpx 0 20rpx;
		font-size: 26rpx;
	}

	.goodsInfo-attr_main {
        padding: 10rpx 0;
		border-radius: 10rpx;
        background-color: #f7f7f7;
	}
	
	.goodsInfo-attr_L {
		display: flex;
		align-items: center;
        font-size: 24rpx;
        color: #333;
		image {
			width: 50rpx;
			height: 50rpx;
            margin-right: 20rpx;
            border-radius: 4rpx;
            background-color: red;
		}
	}
	.goodsInfo-attr_R {
        font-size: 24rpx;
        color: #333;
        text {
             &:first-child {
                 color: #ff4c4c;
             }
        }
    }

	.info {
		padding: 20rpx;
		width: 710rpx;
		margin: 20rpx auto 0;
		border-radius: 10rpx;
		background-color: #fff;
	}

	.info-item {
		display: flex;
		line-height: 30rpx;
		padding: 20rpx 0;
		font-size: 26rpx;
	}

	.info-item_left {
		flex-shrink: 0;
		width: 140rpx;
		color: #999;
	}

	.info-item_right {
		color: #333;
	}

	.total {
		padding: 20rpx;
		width: 710rpx;
		margin: 20rpx auto 0;
		border-radius: 10rpx;
		background-color: #fff;
	}

	.total-main {
		padding-bottom: 20rpx;
	}

	.total-item {
		display: flex;
		justify-content: space-between;
		line-height: 30rpx;
		padding: 20rpx 0;
		font-size: 26rpx;
	}

	.total-item_left {
		color: #999;
	}

	.total-item_right {
		color: #333;
	}

	.total-footer {
		display: flex;
		justify-content: flex-end;
		line-height: 100rpx;
		border-top: 1px solid $g-border-color;

		view {
			&:first-child {
				font-size: 24rpx;
			}

			&:last-child {
				font-size: 32rpx;
				color: #ff7733;
			}
		}
	}

	.btn {
		position: fixed;
		left: 0;
		bottom: 0;
		margin: 40rpx auto 0;
		height: 110rpx;
		width: 100vw;
		box-sizing: content-box;
		display: flex;
		justify-content: center;
		align-items: center;
		padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom);
		background-color: #fff;
		box-shadow: 0 0 10rpx 4rpx #f1f1f1;
	}
</style>
